#include <iostream>

using namespace std;

int main()
{
    int limit = 100;
    int sumOfSquares = 0;
    int squareOfSum = 0;
    for(int i = 0; i <= limit; i++){
        sumOfSquares += i*i;
        squareOfSum += i;
    }
    squareOfSum *= squareOfSum;
    cout << "sumOfSquares: " << sumOfSquares << " squareOfSum: "<< squareOfSum << " diff: " << squareOfSum - sumOfSquares << endl;
    return 0;
}
